// 迭代器 (Iterator)

const s = new Set(['foo', 'bar', 'baz']);

const interator = s[Symbol.iterator]();

console.log(interator.next());
console.log(interator.next());
console.log(interator.next());
console.log(interator.next());
console.log(interator.next());
